import { JSONMapping } from "../../json-mapping";
// import { InspectionSysUserDto } from "../../dto/inspection/inspection-SysUser.dto";
// import {Bill} from "../bill/bill";
import {ObjectDto, ObjectDtoInterface} from "../../../services/sqliteDB/object.dto";
import {SyncStatus} from "../../sync-status";

export class InspectionSysUser extends JSONMapping implements ObjectDtoInterface {
    static PropertyKeyToJSONKeyMap() {
        return {
            id: "userId",
            name: "userName",
            account: "loginAccount",
        };
    }
    public id: number = null;
    public name: string = null;
    public account: string = null;
    public syncStatus: SyncStatus = SyncStatus.None;
    // bills: Array<Bill> = [];


    constructor(json: { [key: string]: any }) {
        super(json);
        InspectionSysUser.mapFromJSON(json, this);
    }
}

